]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
theme: Scale media player button padding with font size
authorSebastian Keller <skeller@gnome.org>
Thu, 4 Feb 2021 01:22:22 +0000 (02:22 +0100)
committerMarge Bot <marge-bot@gnome.org>
Thu, 4 Feb 2021 22:42:08 +0000 (22:42 +0000)
The total width of the MediaMessage scales with the font size, but the
padding of the media player buttons do not, which can become an issue
with text-scaling-factor < 1.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3664

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1632>

data/theme/gnome-shell-sass/widgets/_message-list.scss

index 45edb26b2596b45233cd89fbd1b5888d31b9138f..02d122b912abb6f8058241d21aad214b2f44e37b 100644 (file)
@@ -99,7 +99,7 @@
 
 /* Media Controls */
 .message-media-control {
-  padding: $base_padding * 2 $base_padding * 4;
+  padding: $base_padding * 2 1.64em; // $base_padding * 4 = 24px
   color: darken($fg_color, 15%);
 
   // uses $hover_bg_color since the media controls are in a notification_bubble